package com.example.orderminiappapi.service.Impl;

import com.example.orderminiappapi.bean.Score;
import com.example.orderminiappapi.bean.Search;
import com.example.orderminiappapi.bean.User;
import com.example.orderminiappapi.dao.ScoreDao;
import com.example.orderminiappapi.dao.SearchDao;
import com.example.orderminiappapi.service.ScoreService;
import com.example.orderminiappapi.service.SearchService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ScoreServiceImpl implements ScoreService {

    @Autowired
    private ScoreDao scoreDao;

    @Override
    public int insertSearchScore(Score score) {
        return scoreDao.insertSearchScore(score);
    }

    @Override
    public Score getSearchScoreById(Score score) {
        return scoreDao.getSearchScoreById(score);
    }

    @Override
    public int addSearchScore(Score score) {
        return scoreDao.addSearchScore(score);
    }
}
